-- GENERATED SPELL FOR [Drakkari Water Binder] --


function spell0_28303(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28303', 3000, 1)
end

function spell1_28303(pUnit, Event) --@Water Bubble,n/a--
pUnit:FullCastSpellOnTarget(54399,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28303', 14000, 1)
end

function Sorts_28303(pUnit, Event)
local choix_sorts_28303 = math.random(0, 1)
if choix_sorts_28303 == 0 then
pUnit:RegisterEvent('spell0_28303', 1, 1)
end
if choix_sorts_28303 == 1 then
pUnit:RegisterEvent('spell1_28303', 1, 1)
end
end

function mob28303_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28303', math.random(1500, 3000), 1)
end

function mob28303_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28303_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28303_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28303, 1, 'mob28303_Action')
RegisterUnitEvent(28303, 2, 'mob28303_Leave')
RegisterUnitEvent(28303, 3, 'mob28303_Kill')
RegisterUnitEvent(28303, 4, 'mob28303_Die')
